import { Message } from 'element-ui';
export default {
    // 成功提示
    success(params: any) {
        Message({
            message: params,
            type: 'success'
        });
    },
    // 警告提示
    warning(params: any) {
        Message({
            message: params,
            type: 'warning'
        });
    },
    // 失败提示
    error(params: any) {
        Message({
            message: params,
            type: 'error'
        });
    },
    show(message: any, type: any) {
        Message({
            message: message,
            type: type,
            duration: 1000,
            customClass: "zZindex"
        });
    }
}